#include<stdio.h>
#include<string.h>
int main()
{
	char s1[100],s2[100];
	scanf("%s %s",s1,s2);
	int number1,number2;
	int len1=strlen(s1);
	int len2=strlen(s2);
	int i;
	int base=1;
	for(i=len1-1;i>=0;i--)
	{
		number1=number1+s1[i]*base;
		base=base*2;
	}
	int base2=1;
	for(i=len2-1;i>=0;i--)
	{
		number2=number2+s2[i]*base2;
		base2=base2*2;
	}
	int sum=number1+number2;
	int number3;
	while(sum)
}
